// 在云数据库中缓存 access_token 与 jsapi_ticket
const mongoose = require('mongoose');

const ticketSchema = new mongoose.Schema({
    access_token: String,
    token_time: String, // 存储token的时间点
    ticket: String,
    ticket_time: String
})

const ticketModel = mongoose.model('ticketModel', ticketSchema);

module.exports = ticketModel;
